﻿using Mapster;
using SmartPlant.Model.DbContext.Biz;
using SmartPlant.WinCore;
using System.Collections.Generic;

namespace SmartPlant.Services
{
    public class Mapper : IRegister
    {
        public void Register(TypeAdapterConfig config)
        {
            config.ForType<SimpleModel<string, Dictionary<string, string>>, SPIPatchObj>()
                .Map(dest => dest.Id, src => src.v1)
                .Map(dest => dest.keyValuePairs, src => src.v2);
        }
    }
}
